define("router", [], (require, exports, module) => {
	exports.done = (app) => {
		return $.router({
			"/test": (e, args) => {
				$.html5api().vibrate(500);
				var history = app().store.get('state').history,
					t = args ? args.t : history.state ? history.state.type : "main";
				history.push({
					type: t
				}, "share", "index.html?t="+t);
				app().render(t);
			}
		});
	}
});